#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

v = StringVar()

def callCheckbutton():
    print v.get()


Checkbutton(root, text='checkbutton value', variable=v, onvalue='python', offvalue='tkinter', command=callCheckbutton).pack()
root.mainloop()
